import Vue from 'vue';
import Router from 'vue-router';
import HomePage from '../views/Home';
import EntryPage from '../views/BuyTicket';
import ListPage from '../views/ActivityList';
import RegisterPage from '../views/Register';
import LoginPage from '../views/Login';
import MyActivities from '../views/MyActivities';
import SignPage from '../views/SignPage';
import ResetPassword from '../views/ResetPassword';
import QRcode from '../views/QRcode';
import MinHomePage from '../views/MinHome';
import MinUserPage from '../views/MinUser';
import UserInfo from '../views/UserInfo';
import wxBindPage from '../views/WxBindInfo';
import WxQRcode from '../views/wxqrcode';
import Protocol from '../views/CopyRight';
import WxArticle from '../views/WxAtricle';
import Test from '../views/test';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'ListPage',
      component: ListPage,
      meta: {
        title: '活动-智慧展务',
        keepAlive: false
      }
    },
    {
      path: '/home/:st',
      name: 'HomePage',
      component: HomePage,
      meta: {
        title: '活动报名支付',
        keepAlive: false
      }
    },
    {
      path: '/entry/:st',
      name: 'EntryPage',
      component: EntryPage,
      meta: {
        title: '活动详情',
        keepAlive: false
      }
    },
    {
      path: '/register',
      name: 'RegisterPage',
      component: RegisterPage,
      meta: {
        title: '注册-智慧展务',
        keepAlive: false
      }
    },
    {
      path: '/login',
      name: 'LoginPage',
      component: LoginPage,
      meta: {
        title: '登录-智慧展务',
        keepAlive: false
      }
    }, {
      path: '/record',
      name: 'MyActPage',
      component: MyActivities,
      meta: {
        title: '我参加的',
        keepAlive: false
      }
    }, {
      path: '/sign/:st',
      name: 'SignPage',
      component: SignPage,
      meta: {
        title: '活动报名',
        keepAlive: false
      }
    }, {
      path: '/reset',
      name: 'ResetPassword',
      component: ResetPassword,
      meta: {
        title: '忘记密码',
        keepAlive: false
      }
    }, {
      path: '/qrcode',
      name: 'QRcode',
      component: QRcode,
      meta: {
        title: '微信二维码',
        keepAlive: false
      }
    }, {
      path: '/micro',
      name: 'MinHomePage',
      component: MinHomePage,
      meta: {
        title: '微官网-首页',
        keepAlive: false
      }
    }, {
      path: '/micro/mine',
      name: 'MinUserPage',
      component: MinUserPage,
      meta: {
        title: '微官网-我的',
        keepAlive: false
      }
    }, {
      path: '/user',
      name: 'UserCenter',
      component: UserInfo,
      meta: {
        title: '个人信息',
        keepAlive: false
      }
    }, {
      path: '/wxlogin',
      name: 'wxBindPage',
      component: wxBindPage,
      meta: {
        title: '绑定微信',
        keepAlive: false
      }
    }, {
      path: '/wxqrcode',
      name: 'WxQRcode',
      component: WxQRcode,
      meta: {
        title: '微信二维码',
        keepAlive: false
      }
    }, {
      path: '/protocol',
      name: 'Protocol',
      component: Protocol,
      meta: {
        title: '壹亿互动服务使用协议',
        keepAlive: false
      }
    }, {
      path: '/article/:id',
      name: 'wxArticle',
      component: WxArticle,
      meta: {
        title: '资讯详情',
        keepAlive: false
      }
    },
    {
      path: '/test',
      name: 'test',
      component: Test,
      meta: {
        title: 'test'
      }
    }

  ]
});
